package com.tianji.learning.mapper;

import com.tianji.learning.domain.po.PointsBoard;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * 学霸天梯榜 Mapper 接口
 * </p>
 *
 * @author xzh
 * @since 2024-03-18
 */
public interface PointsBoardMapper extends BaseMapper<PointsBoard> {

     /**
      * 创建历史积分榜单
      * @param tableName
      */
     static void creatHistoryPointsBoard(String tableName) {
     }

     /**
      * 分页查询历史排行榜记录
      * @param tableName
      * @param pageNo
      * @param pageSize
      * @return
      */
      List<PointsBoard> queryHistoryPointsBoarPage(String tableName, Integer pageNo, Integer pageSize);



     /**
      * 根据数据库名称查询自己的历史排名
      * @param userId
      * @param tableName
      * @return
      */
     PointsBoard queryMyHistoryBorad(Long userId, String tableName);
}
